* xrdb.c (get_user_db): Get the screen-specific database too.
authorJim Blandy <jimb@redhat.com>
Fri, 11 Jun 1993 16:20:38 +0000 (16:20 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 11 Jun 1993 16:20:38 +0000 (16:20 +0000)
src/xrdb.c

index 19ca21f9e02d00c10fd911f802a44697ad59ed88..6a769e3aa6c67b7278c3fc823d20c97711f3ac3d 100644 (file)
@@ -314,6 +314,15 @@ get_user_db (display)
       db = XrmGetFileDatabase (xdefault);
     }
 
+#ifdef XlibSpecificationRelease
+#if XlibSpecificationRelease >= 5
+  /* Get the screen-specific resources too.  */
+  xdefs = XScreenResourceString (DefaultScreenOfDisplay (display));
+  if (xdefs != NULL)
+    XrmMergeDatabases (XrmGetStringDatabase (xdefs), &db);
+#endif
+#endif
+
   return db;
 }